package com.example.houduan.mapper;

import com.example.houduan.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author acer
* @description 针对表【user】的数据库操作Mapper
* @createDate 2024-08-27 20:57:42
* @Entity com.example.houduan.entity.User
*/
public interface UserMapper extends BaseMapper<User> {
    void addUser(User user);
    void logoutUser(Long id);
    List<User> checkByEmail(@Param("email") String email);
    void updateByEmail(String email , String password);
    User checkByUsername(String username);
    List<User> checkByUsernameAndPassword(String username,String password);
    void updataBPassword(String username,String password,String psd);

}




